'use strict';

const conn = require('../../libs/Conn');
const util = require('../../libs/Utils');

module.exports = async function (params) {
    let updateObj = {
        region_name:params.region_name,
        enable:params.enable,
        region_type:params.region_type,
    };
    let sql = 'UPDATE region_file SET ? WHERE region_id = ?;';
    await conn(sql, [updateObj,params.region_id]);
    return {success: true};
};